package com.hexiang.dao;

import java.util.List;

public interface Dao<T> {

    Long save(T t);

    T get(long id);

    Integer deleteById(long id);

    Integer update(T t);

    List<T> queryAll();

    List<T> queryListByLimit(int limit);

    Integer count();

    int[][] batchSave(List<T> tist);

    int[][] batchUpdate(List<T> tist);

}